<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/jquery.js"></script>
    <link rel="stylesheet" href="../css/login.css">
    <link rel="stylesheet" href="https://at.alicdn.com/t/font_2837357_s8u3n2x8ame.css">
    <script src="../js/jquery.js"></script>
    <script src="../js/promise封装ajax.js"></script>
    <script src="../js/cookie.js"></script>
</head>

<body>
    <div id="page">
        <div class="header">
            <div class="logo">
                <h1>
                    <a href="" title="淘宝网" class="logo_link">

                    </a>
                </h1>
                <a href="javascript:;" class="link">
                    <i class="iconfont"><img src="../img/消息气泡(1).png" ></i>
                    <span>"登录页面" 改进建议</span>
                </a>
            </div>
        </div>
        <div class="content">
            <div class="login_newbg">

            </div>
            <div class="content_layout">
                <div class="login_box">
                    <div class="box">
                        <div class="login-blocks "><a href="javascript:;" class="password-login-tab-item">密码登录</a></div>
                        <div class="login-error">

                        </div>
                        <form class="forms">
                            <div class="fm-field">
                                <div class="fm-fm">
                                    <i class="iconfont icon-yonghu" style="color: white; font-size: 25px;" title="用户名"></i>
                                </div>
                                <input name="fm-login-id" type="text" class="fm-text user" placeholder="会员名/邮箱/手机号">
                            </div>
                            <div class="fm-field">
                                <div class="fm-fm">
                                    <i class="iconfont icon-suoding_huaban" style="color: white; font-size: 20px;" title="密码"></i>
                                </div>
                                <input name="fm-login-password" type="password" class="fm-text pwd" placeholder="请输入登录密码">
                            </div>
                            <div class="fm-btn">
                                <input type="button" class="btn" value="登录">

                            </div>
                        </form>
                        <span class="iconfont icon-weibo"></span>
                        <a href="javascript:;" class="webo-login">微博登录</a>
                        <span class="iconfont icon-zhifubaozhifu"></span>
                        <a href="javascript:;" class="zhifubao-login">支付宝登录</a>

                        <div class="login-links">
                            <a href="javascript:;">忘记密码</a>
                            <a href="javascript:;">忘记用户名</a>
                            <a href="register.html">免费注册</a>
                        </div>
                    </div>

                </div>
            </div>
        </div>

    </div>
    <div class="footer">
        <div class="footer-hd">
            <p>
                <a href="javascript:;">阿里巴巴集团</a>
                <b>|</b>
                <a href="javascript:;">阿里巴巴国际站</a>
                <b>|</b>
                <a href="javascript:;">阿里巴巴中国站</a>
                <b>|</b>
                <a href="javascript:;">全球速卖通</a>
                <b>|</b>
                <a href="javascript:;">淘宝网</a>
                <b>|</b>
                <a href="javascript:;">天猫</a>
                <b>|</b>
                <a href="javascript:;">聚划算</a>
                <b>|</b>
                <a href="javascript:;">一淘</a>
                <b>|</b>
                <a href="javascript:;">阿里妈妈</a>
                <b>|</b>
                <a href="javascript:;">飞猪</a>
                <b>|</b>
                <a href="javascript:;">虾米</a>
                <b>|</b>
                <a href="javascript:;">阿里云计算</a>
                <b>|</b>
                <a href="javascript:;">云os</a>
                <b>|</b>
                <a href="javascript:;">万网</a>
                <b>|</b>
                <a href="javascript:;">支付宝</a>
                <b>|</b>
                <a href="javascript:;">来往</a>

            </p>
        </div>
        <div class="footer-bd">
            <p><span> 
                <a href="javascript:;">关于淘宝</a>
             </span>
                <span>
                <a href="javascript:;">合作伙伴</a>
             </span>
                <span>
                <a href="javascript:;">营销中心</a>
             </span>
                <span>
                <a href="javascript:;">廉正举报</a>
             </span>
                <span>
                <a href="javascript:;">诚征英才</a>
             </span>
                <span>
                <a href="javascript:;">联系我们</a>
             </span>
                <span>
                <a href="javascript:;">网站地图</a>
             </span>
                <span>
                <a href="javascript:;">隐私权政策</a>
             </span>
                <span>
                <a href="javascript:;">法律声明</a>
             </span>
                <span> 
                 <a href="javascript:;">知识产权</a></span>
                <b>
                     |
                 </b>
                <em>
                © 2003-现在 Taobao.com 版权所有
             </em>

            </p>
            <p>
                <span><a href="javascript:;" rel="noopener noreferrer">增值电信业务经营许可证：浙B2-20080224</a></span>
                <b>|</b>
                <span>
                    <a href="javascript:;" rel="noopener noreferrer">增值电信业务经营许可证（跨地区）： B2-20150210</a>
                 </span>

                <b>|</b>
                <span>
                    <a href="javascript:;" rel="noopener noreferrer">浙网文（2019）1033-086号</a>
                  </span>

                <b>|</b>
                <span>浙江省网络食品销售第三方平台提供者备案：浙网食A33010001</span>
            </p>
            <p>
                <span>互联网药品信息服务资格证书（浙）-经营性-2018-0010</span>
                <b>|</b>
                <span>短消息类服务接入代码使用证书：号【2016】00154-A01</span>
                <b>|</b>
                <span>信息网络传播视听许可证：1109364号</span>
                <b>|</b>
                <span>出版物网络交易平台服务经营备案号：新出发浙备字第002号</span>
            </p>
            <p>
                <span>
                    <a href="javascript:;">
                      <span class="tb-footer-mod" ></span>浙公网安备 33010002000078号</a>
                </span>
                <b>|</b>
                <span><a href="javascript:;">浙B2-20080224-1</a></span>
                <b>|</b>
                <span>广播电视节目制作经营许可证（浙）字第01012号</span>
                <b>|</b>
                <span>市场名称登记证：工商网市字3301004120号</span>
                <b>|</b>
                <span>医疗器械网络交易服务第三方平台备案(浙)网械平台备字[2018</span>

            </p>
        </div>
        <div class="footer-ft">
            <a target="_blank" href="http://www.pingpinganan.gov.cn/" rel="noopener noreferrer" style="margin-left:15px; display:inline-block; background-position:0px 0px; width:36px; height:40px;  background-image: url(http://img.alicdn.com/tps/i1/T1FeW3XXNfXXXXXXXX-36-36.gif);">
            </a>
            <a target="_blank" href="http://idinfo.zjamr.zj.gov.cn//bscx.do?method=lzxx&amp;id=3301843301002003002431" class="tb-footer-mod" rel="noopener noreferrer" style="margin-left:15px; display:inline-block; height: 40px; background-position:0px 0px; width:30px; background-image: url(https://img.alicdn.com/tfs/TB1EPnIQXXXXXaSXpXXXXXXXXXX-1133-35.jpg);">
            </a>
            <a target="_blank" href="http://idinfo.zjaic.gov.cn/bscx.do?spm=1.7274553.1997523009.29.alN7ce&amp;method=hddoc&amp;id=33018400000067" class="tb-footer-mod" rel="noopener noreferrer" style="background-position:-40px 0px; width:33px; margin-left:15px; display:inline-block; height: 40px; background-image: url(https://img.alicdn.com/tfs/TB1EPnIQXXXXXaSXpXXXXXXXXXX-1133-35.jpg);">
            </a>
            <a target="_blank" href="http://www.theclimategroup.org.cn/about/friend?spm=1.7274553.1997523009.30.alN7ce" class="tb-footer-mod" rel="noopener noreferrer" style="background-position:-80px 0px; width:50px; margin-left:15px; display:inline-block; height: 40px; background-image: url(https://img.alicdn.com/tfs/TB1EPnIQXXXXXaSXpXXXXXXXXXX-1133-35.jpg);">
            </a>
            <a target="_blank" href="https://ss.knet.cn/verifyseal.dll?spm=1.7274553.1997523009.31.alN7ce&amp;&amp;sn=2010062300100001357&amp;pa=20100701" class="tb-footer-mod" rel="noopener noreferrer" style="background-position:-140px 0px; width:83px; margin-left:15px; display:inline-block; height: 40px; background-image: url(https://img.alicdn.com/tfs/TB1EPnIQXXXXXaSXpXXXXXXXXXX-1133-35.jpg);">
            </a>
            <a target="_blank" href="http://report.12377.cn:13225/toreportinputNormal_anis.do?spm=a2107.1.0.0.442511d9YkgrEA&amp;file=toreportinputNormal_anis.do" class="tb-footer-mod" rel="noopener noreferrer" style="background-position:0px -18px; width:250px; background-image: url(https://img.alicdn.com/tfs/TB1N7kwRVXXXXbAapXXXXXXXXXX-500-127.png_250x250); margin-left:15px; display:inline-block; height: 40px;"
                data-spm-anchor-id="a2107.1.0.0">
            </a>
            <a target="_blank" href="http://www.12377.cn/node_548446.htm" class="tb-footer-mod" rel="noopener noreferrer" style="background-position:-650px 0px; width:105px; margin-left:15px; display:inline-block; height: 40px; background-image: url(https://img.alicdn.com/tfs/TB1EPnIQXXXXXaSXpXXXXXXXXXX-1133-35.jpg);">
            </a>
            <a target="_blank" href="http://sq.ccm.gov.cn/ccnt/sczr/service/business/emark/toDetail/2E7819FC84674D5980464916C24B7E3E" class="tb-footer-mod" rel="noopener noreferrer" style="background-position:-345px 0px; width:82px; margin-left:15px; display:inline-block; height: 40px; background-image: url(https://img.alicdn.com/tfs/TB1EPnIQXXXXXaSXpXXXXXXXXXX-1133-35.jpg);">
            </a>
            <a target="_blank" href="https://credit.szfw.org/CX20160715023573390688.html" class="tb-footer-mod" rel="noopener noreferrer" style="background-position:-761px 0px; width:97px; margin-left:15px; display:inline-block; height: 40px; background-image: url(https://img.alicdn.com/tfs/TB1EPnIQXXXXXaSXpXXXXXXXXXX-1133-35.jpg);">
            </a>
        </div>
    </div>
    </div>
</body>
<script>
    $(function() {
        $('.btn').click(function() {
            var user = $(".user").val();
            var pwd = $(".pwd").val();
            if (user && pwd) {
                account({
                    user,
                    pwd
                }).then(data => {
                    var {
                        status,
                        msg,
                        user
                    } = data;
                    if (status) {
                        setCookie("lgc", user);
                        $(".login-error").show().text("登录成功").css({
                            color: 'orangered'
                        });

                        var url = urlParse();
                        if (url.returnUrl) {
                            location.href = decodeURIComponent(url.returnUrl);
                        } else {
                            location.href = "taobao.html";
                        }
                    } else {
                        $(".login-error").show().text(msg).css({
                            color: 'orangered'
                        });
                    }
                })
            } else {
                $(".login-error").show().text("请输入完整的数据!").css({
                    color: 'orangered'
                });
            }
        })





        function urlParse() {
            var search = location.search;
            var data = {};
            if (search) {
                var str = search.substr(1);
                var list = str.split("&");
                for (var i = 0; i < list.length; i++) {
                    var item = list[i];
                    var key = item.split("=")[0];
                    var val = item.split("=")[1];
                    data[key] = val;
                }
                console.log(data);
            }
            return data;
        }

    })
</script>

</html>